package com.smxy.mall.dao;

import com.smxy.mall.entity.Address;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

public interface AddressDao extends JpaRepository<Address,String>, JpaSpecificationExecutor<Address> {
    Address save(Address address);
    List<Address> findByUserId(Integer userId);
    Address findById(Integer id);
}
